package com.tjh.gulimall.seckill.service;

import com.tjh.gulimall.seckill.to.SecKillSkuRedisTo;

import java.util.List;

/**
 * Create by koala on 2021-05-30
 */
public interface SeckillService {

    //day135：秒杀商品的定时上架
    void uploadSeckillSkuLatest3Days();

    //day136：返回当前时间可以参与的秒杀商品信息
    List<SecKillSkuRedisTo> getCurrentSeckillSkus();

    //day137：查询当前sku是否参与秒杀优惠
    SecKillSkuRedisTo getSkuSeckillInfo(Long skuId);

    //day138：秒杀下单
    String kill(String killId, String key, Integer num);
}
